package com.fuxian.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.fuxian.dao.LessonclassifDao;
import com.fuxian.model.Lessonclassifcation;
import com.fuxian.service.LessonclassifService;
@Service
@Transactional
public class LessonclassifServiceImpl implements LessonclassifService {

	@Resource
	private LessonclassifDao lessonclassifDao;
	
	public void addLessonclassifcation(Lessonclassifcation lessonclassif) {
		lessonclassifDao.addLessonclassifcation(lessonclassif);

	}

	public void deleteLessonclassifcationById(int id) {
		lessonclassifDao.deleteLessonclassifcationById(id);
	}

	public void modifyLessonclassifcation(
			Lessonclassifcation lessonclassifcation) {
lessonclassifDao.modifyLessonclassifcation(lessonclassifcation);
	}

	public List<Lessonclassifcation> selectAlllessonclassifcation(int start, int size) {
return lessonclassifDao.selectAlllessonclassifcation(start, size);
	}

	public Lessonclassifcation selectLessonclassifcation(int id) {
		
		return lessonclassifDao.selectLessonclassifcationById(id);
	}

	public int selectCount() {
		return lessonclassifDao.selectCount();
	}

}
